import fetch from '@/utils/fetch';
import { EBIZ_API } from '@/config/baseUrl';

export function getClassifyList(params) {
	return fetch({
	    url: EBIZ_API + '/appAdmin_category/list.do',
	    method: 'get',
	    
	    params
  	})
}

export function getClassifyDetail(id) {
	return fetch({
	    url: EBIZ_API + `//appAdmin_category/getInfo.do?CATEGORY_ID=${id}`,
	    method: 'get'
  	})
}

export function createClassify(data) {
	return fetch({
		url: EBIZ_API + '//appAdmin_category/save.do',
		method: 'post',
		data
	})
}

export function modifyClassify( data) {
	return fetch({
	    url: EBIZ_API + '//appAdmin_category/edit.do',
	    method: 'post',
	    data
	})
}
export function superior(params) {
	return fetch({
	    url: EBIZ_API + '//appAdmin_category/listAll.do',
	    method: 'post',
	    params
  	})
}
export function deletethis(data) {
	return fetch({
		url: EBIZ_API + '/appAdmin_category/delete.do',
		method: 'post',
		data
	})
}
export const sort = { //省     	
	"1": "超市分类",
	"2": "餐饮分类",
	"3": "团购分类"
	
	
};
export const grade = { //省     	
	
	"2": "二级分类",
	"3": "三级分类"
	
	
};
export const cancel = { //省     	
	
	"0": "未删除",
	"1": "已删除"
	
	
};
export const upsort = { //省     	
	
	"1": "超市商品",
	"5": "速冻食品",
	"22": "肉禽蛋奶",
	"23": "日化清洁",
	"4": "新鲜水果"
	
	
};
export const seek_o = { //省     	
	
	"": "上级分类",
	"4": "生鲜类",
	"32": "非食类",
	"31": "食品类"
	
	
};
export const seek1 = { //省     	
	
	"": "上级分类",
	"16": "品质水果",
	"17": "品牌清仓"
	
	
};
export const cancel_o = { //省     	
	"":"删除标记",
	"0": "未删除",
	"1": "已删除"
	
	
};

